package com.mojo.elastic.pojo;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.data.annotation.Id;
import org.springframework.data.elasticsearch.annotations.Document;

import java.io.Serializable;
import java.lang.annotation.Documented;

/**
 * @author <a href="mailto:sjj@jianzhimao.com">mojo</a>
 * copyright (C), 2013-2022, 广州九尾信息科技有限公司
 * @date 2022/4/22 15:10
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
@Document(indexName = "consumer")//设置索引名称
public class Log implements Serializable {
    @Id
    private Integer id;
    private String name;
    private Integer age;
    private Integer score;
}
